<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script src="./js/jquery.min.js"></script>

  <style>
    body {
      background: url('imang/登录.jpg') no-repeat;
       /* 或 contain，根据需要选择合适的值 */
      /* background-size: cover; */
      
  background-position: center center; /* 让背景图像水平和垂直居中 */
      background-size: 100% 120%;
    }

    #login_box {
      width: 20%;
      height: 400px;
      background-color: #00000060;
      margin: auto;
      margin-top: 10%;
      text-align: center;
      border-radius: 10px;
      padding: 50px 50px;
    }

    h2 {
      color: #ffffff90;
      margin-top: 5%;
    }

    #input-box {
      margin-top: 5%;
    }

    

    input {
      border: 0;
      width: 60%;
      font-size: 15px;
      color: #fff;
      background: transparent;
      border-bottom: 2px solid #fff;
      padding: 5px 10px;
      outline: none;
      margin-top: 0px;
    }

    button {
      margin-top: 250px;
      width: 60%;
      height: 30px;
      border-radius: 10px;
      border: 0;
      color: #fff;
      text-align: center;
      line-height: 30px;
      font-size: 15px;
      background-image: linear-gradient(to right, #30cfd0, #330867);
    }

    #sign_up {
      margin-top: 45%;
      margin-left: 60%;
    }

        .container {
            height: 30px;
            width: 250px;
            position: absolute;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
        }

        input {
            width: 100%;
            height: 100%;
            position: relative;
            outline: none;
            border: none;
            box-sizing: border-box;
            padding-left: 5px;
            background-color: #282c34;
            color: #61dafb;
            caret-color: #61dafb;
        }
        input::placeholder {
            color: #61dafb;
        }

        span {
            position: absolute;
            content: "";
            display: block;
            background-color: #61dafb;
            transition: transform .1s ease-in-out;
        }
        .top,
        .bottom {
            left: 0px;
            right: 0px;
            height: 2px;
            top: 30px;
        }
        .left,
        .right {
            top: 0px;
            bottom: 0px;
            width: 2px;
            transform: scaleY(0);
        }
        .top {
            top: 0px;
            transform: scaleX(0);
            transform-origin: left center;
            transition-delay: .2s;
        }
        .left {
            
            left: 0px;
            transform-origin: bottom center;
            transition-delay: .3s;
        }
        .bottom {
            bottom: 0px;
        }
        .right {
            
            right: 0px;
            transform-origin: top center;
            transition-delay: .1s;
        }
        input:focus ~ .right {
            transform: scaleY(1);
            transform-origin: bottom center;
        }
        input:focus ~ .left {
            transform: scaleY(1);
            transform-origin: top center;
        }
        input:focus ~ .top {
            transform: scaleY(1);
            transform-origin: right center;
        }
        .container1 {
            height: 30px;
            width: 250px;
            position: absolute;
            left: 50%;
            top: 60%;
            transform: translate(-50%, -50%);
        }
        .cipher{
          font-size: 12px;
            position: relative;
            top:203px;
            left: 90px;
            color: #61dafb;
        }
        a{
            text-decoration: none;
        }
        .container2 a,.container3 a{
          color: #61dafb;
        }
        .container2{
          position: absolute;
          top: 600px;
          left: 650px;
        }
        .container3{
          position: absolute;
          top: 600px;
          left:820px;
        }

  </style>
</head>

<body>
  <div id="login_box">
    <h2>身  心  健  康  登  录  系  统</h2>
    <form id="loginForm">
      <div class="container">
        <input type="text" id="username" placeholder="请输入用户名" required>
        <span class="left"></span>
        <span class="right"></span>
        <span class="top"></span>
        <span class="bottom"></span>
      </div>
      <div class="container1">
        <input type="password" id="password" placeholder="请输入密码" required>
        <span class="left"></span>
        <span class="right"></span>
        <span class="top"></span>
        <span class="bottom"></span>
      </div>
      <div>
        <a class="cipher" href="#">忘记密码</a>
      </div>
      <button type="button" onclick="submitLogin()">登录</button><br>
    </form>
  </div>
  <div class="container2"><a href="用户注册.html">用户注册</a></div>
  <div class="container3"><a href="登录2.html">手机号登录</a></div>

  <!-- JavaScript代码 -->
  <script src="js/login.js"></script>
</body>
</html>